package com.shsh.safemanage.model;

public class JobTitle {
	private Long id;
	private Integer titleType;
	private Integer titleLevel;
	private String titleName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getTitleType() {
		return titleType;
	}

	public void setTitleType(Integer titleType) {
		this.titleType = titleType;
	}

	public Integer getTitleLevel() {
		return titleLevel;
	}

	public void setTitleLevel(Integer titleLevel) {
		this.titleLevel = titleLevel;
	}

	public String getTitleName() {
		return titleName;
	}

	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}
	
	public int hashCode() {
		return this.id.intValue() + this.titleType * 37;
	}
	
	public boolean equals(Object o) {
		if (!(o instanceof JobTitle)) {
			return false;
		}
		
		JobTitle theTitle = (JobTitle) o;
		if (theTitle.getId().equals(this.getId()) && theTitle.getTitleType().equals(this.getTitleType())) {
			return true;
		}
		
		return false;
	}
}
